<?php

//连接数据库
//写SQL
$sql = '';

//执行
mysql_query($sql);

//查询结果处理
$sql = "SELECT $fileds_list FROM $tb_name $where $order_by $limit";
$rs = mysql_query($sql);
$rows = array();
while ($row = mysql_fetch_assoc($rs)) {
    $rows[] = $row;
}
return $rows;
